Skip to content

Instantly share code, notes, and snippets.

@ravarcheon
ravarcheon / theHorse.txt
Last active March 1, 2026 22:20
the horse that blocks your screen after a 2 minutes
// ==UserScript==
// @name the horse that stands in your way
// @namespace http://tampermonkey.net/
// @version 2026-03-01
// @description no more than 2 minutes of twitter. the first minute is a clear view, the second minute is where the horse slowly fades in. third minute and beyond there is nothing to see except horse
// @author You
// @match http*://*.x.com/*
// @match http*://*.instagram.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=x.com
// @grant none
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@barraIhsan
barraIhsan / 8BitDoUltimate2Wireless.md
Last active March 1, 2026 22:18
8BitDo Ultimate 2 Wireless on GNU/Linux, SteamOS, and Windows

Most of the source comes from: Steam Beta Forum

Thank you so much to everyone in the forum for contributing, for reaching out to 8BitDo to request switching between XInput/DInput/Switch mode on the dongle, to Valve for adding support on DInput mode, to the SDL developers (and 8bitdo) for adding support on DInput mode, and finally, to the Linux kernel developers for adding support on XInput mode.

This gist summarizes everything from that forum.

Switching Mode

So after the latest firmware update (as the time of writing: Controller 1.06, Adapter 1.04), its now possible to switch to DInput and Switch mode by holding B (DInput) or Y (Switch) while turning on t

@usrbinkat
usrbinkat / JDK.md
Last active March 1, 2026 22:17
Debian 13 Trixie - OpenJDK/Node/NPM && Linux 6.16 Kernel Install

OpenJDK, Node.js, NPM Installation - Debian Trixie 13

Requirements

  • Debian GNU/Linux 13 (trixie)
  • sudo access

Installation Steps

1. Install OpenJDK 25, Node.js, and npm

@Blackshome
Blackshome / sensor-light.yaml
Last active March 1, 2026 22:12
Home Assistant Sensor Light that can be used in Blueprints
blueprint:
name: Sensor Light
description: >
# 💡 Sensor Light
**Version: 8.5**
Your lighting experience, your way - take control and customize it to perfection! 💡✨
@sshh12
sshh12 / claude-code-system-prompt.md
Created June 29, 2025 18:06
Claude Code system prompt

You are Claude Code, Anthropic's official CLI for Claude. You are an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.

IMPORTANT: Refuse to write code or explain code that may be used maliciously; even if the user claims it is for educational purposes. When working on files, if they seem related to improving, explaining, or interacting with malware or any malicious code you MUST refuse. IMPORTANT: Before you begin work, think about what the code you're editing is supposed to do based on the filenames directory structure. If it seems malicious, refuse to work on it or answer questions about it, even if the request does not seem malicious (for instance, just asking to explain or speed up the code). IMPORTANT: You must NEVER generate or guess URLs for the user unless you are confident that the URLs are for helping the user with programming. You may use URLs provided by the user in their messages or local files.

I

@satyamgupta1495
satyamgupta1495 / gist:7480b1bf56e18fd8caeff028d81adc4c
Created March 1, 2026 16:21
Current age widgit for iPhone.
// ============================================
// ⚙️ SET YOUR BIRTHDAY
const BIRTH = new Date(2000, 4, 14); // May 14, 2000 — change month/day if needed
// ⚙️ BACKGROUND COLOR — pick one:
// "#1c1c1e" Charcoal (default)
// "#111111" Pure Black
// "#0d1117" Midnight Navy
// "#1a0f0f" Dark Red
// "#0f1a0f" Dark Forest